<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>BBS论坛</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body>
<%
    Object pages = request.getSession().getAttribute("PAGES");
    if (null == pages) {
        response.sendRedirect("page?type=page");
    }
%>
    <div class="container">
        <div class="row" style="background-color: #f7f7f7;height: 100px;font-size: 30px;font-weight:bolder">欢迎进入BBS论坛
        </div>
        <div class="row body">
            <div class="col-md-2 left" style="background-color: #ececf6;height: 500px">
                <c:forEach var="page" items="${sessionScope.PAGES}">
                    <a href="page_info.jsp?pageId=${page.pageId}" target="pageInfo">${page.pageName}</a><br />
                </c:forEach>
            </div>
            <div class="col-md-10 right" style="background-color:#f7f7f7;height: 500px">
                <iframe name="pageInfo" src="page_info.jsp" style="width: 920px;height: 500px" />
            </div>
        </div>
    </div>
</body>
</html>
